<template>
  <!-- <li @click="gotodetail"> -->
  <li>
    <img :src="item.img" alt="" />
    <h5>{{ item.title }}</h5>
    <h5>价格：{{ item.price }}</h5>
  </li>
</template>

<script>
export default {
  props: ["item"],
  data() {
    return {};
  },
  created() {},
  methods: {
    gotodetail() {
      this.$router.push({ path: "/detail", query: { item: this.item } });
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
